﻿<Window x:Class="WpfDecorator.Window1"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="clr-namespace:WpfDecorator"
        Title="Window1" Height="300" Width="300">
    <Grid>
        <Button VerticalAlignment="Top" HorizontalAlignment="Left" Click="Button_Click">test</Button>    
        <StackPanel Width="200" Height="200">
            <local:MaskAttach.Content>
                <local:MaskAttach x:Name="aaaa">
                    <local:MaskAttach.Template>
                        <DataTemplate>
                            <Border Background="Silver" Opacity="0.5" >
                            <TextBlock Text="loading..." />
                            </Border>
                        </DataTemplate>
                    </local:MaskAttach.Template>
                </local:MaskAttach>
            </local:MaskAttach.Content>
        </StackPanel>
    </Grid>
</Window>
